package com.fowo.api.syncLingxingApi.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fowo.api.entity.ShopInfo;
import com.fowo.api.syncLingxingApi.entity.TmpSyncLingxingToSellerLists;
import com.fowo.api.syncLingxingApi.mapper.TmpSyncLingxingToSellerListsMapper;

import com.fowo.api.syncLingxingApi.service.TmpSyncLingxingToSellerListsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
@DS("ds24")
public class TmpSyncLingxingToSellerListsServiceImpl
        extends ServiceImpl<TmpSyncLingxingToSellerListsMapper, TmpSyncLingxingToSellerLists>
        implements TmpSyncLingxingToSellerListsService {
    @Override
    public Integer updateToTable(String version) {
        return baseMapper.updateToTable(version);
    }

    @Override
    public Integer insertToTable(String version) {
        return baseMapper.insertToTable(version);
    }

    @Override
    public void clearAll() {
        baseMapper.clearAll();
    }

    @Override
    public List<ShopInfo> getOldData(List<TmpSyncLingxingToSellerLists> sellerLists) {
        return baseMapper.getOldData(sellerLists);
    }
}
